public class Teacher {

    private String teacherId;
    private String name;
    private String gender;
    private Course course;


    public Teacher(String teacherId, String name, String gender) {
        this.teacherId = teacherId;
        this.name = name;
        this.gender = gender;
    }


    public void offerCourse(Course course) {
        this.course = course;
        System.out.println("教师 " + name + " 开设课程：" + course.getCourseName());
    }


    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Course getCourse() {
        return course;
    }
}

